<?php
namespace Api\Xml\Schema\Exception;

/**
 * Class XmlSchemaException
 * @package Api\Xml\Schema\Exception
 */
class XmlSchemaException extends \Exception
{
    public function __construct(array $errors, $code = 0, \Exception $previous = null)
    {
        parent::__construct($errors['0']->message, $code, $previous);
    }
}